Siel\Acumulus\Invoice\Completor D

Total Complexity 302
Dependencies 17
Dependents 7
Total lines 1,940
Lines of code 876
Logical lines of code 571
Comment lines 861
Methods 50
Properties 17

Methods 50

Method Rating Maintainability Complexity Lines of code
getInvoiceLinesVatTypeInfo()
D
36 35 62
initPossibleVatRates()
C
36 26 75
initPossibleVatTypes()
B
40 19 61
processMetaData()
B
50 18 28
addMissingAmountLine()
B
39 15 62
guessVatType()
A
47 12 37
completeVatType()
A
42 11 52
areTotalsEqual()
A
47 12 36
getNature()
A
50 10 29
checkEuCommerceThreshold()
A
49 10 27
completeLineTotals()
A
46 9 41
correctNoVatLines()
A
55 9 18
correctMarginInvoice()
A
56 8 17
completeVatTypeId()
S
59 8 14
shouldConvertCurrency()
S
56 7 18
getVatRatesByCountryAndInvoiceDate()
S
52 6 25
validateEmail()
S
53 5 22
changeInvoiceToConcept()
S
54 5 20
fictitiousClient()
S
58 5 14
addWarning()
S
62 4 12
isNorthernIreland()
S
65 4 8
invoiceTemplate()
S
64 4 9
isFreeVatRate()
S
69 4 6
is0VatRate()
S
69 4 6
complete()
S
52 2 25
addDefault()
S
68 3 7
isVatFreeInvoice()
S
66 3 8
is0VatClass()
S
66 3 8
isVatFreeClass()
S
66 3 8
convertAmount()
S
67 3 7
metaDataHasOnlyNoVat()
S
66 3 9
removeEmptyShipping()
S
64 3 9
isEu()
S
63 3 9
metaDataHasANoVat()
S
66 3 9
isCompany()
S
77 2 3
convertToEuro()
S
65 2 9
checkMissingAmount()
S
69 2 7
checkForKnownVatType()
S
66 2 8
getInvoiceDate()
S
72 2 5
isOutsideEu()
S
79 2 3
isNoVat()
S
79 2 3
__construct()
S
62 1 12
is0VatVatTypePossible()
S
78 1 3
isUk()
S
77 1 3
lineHasNoVat()
S
80 1 3
isEuVatClass()
S
72 1 5
usesEuVat()
S
72 1 5
isCorrectVatRate()
S
79 1 3
isNl()
S
79 1 3
t()
S
80 1 3